import request from "./http";
// https://apis.netstart.cn/maoyan/index/movieOnInfoList

// 推荐列表
export function getRecommended() {
    return request({
        url: "home/recommended/0/20",
        method: "get",
        // params:{
        //     offset:20,
        //     limit:10
        // }
    })
}

// 关注列表
export function getWatch() {
    return request({
        url: "home/ffeeds/0/20",
        method: "get",

    })
}

// 笔记列表
export function getNotes() {
    return request({
        url: "home/notes/0/20",
        method: "get",

    })
}

// 视频列表
export function getVideos() {
    return request({
        url: "home/videos/0/20",
        method: "get",

    })
}

// 视频列表
export function getNotice() {
    return request({
        url: "home/events/getlists?offset=0limit=20",
        method: "get",

    })
}

// 菜谱详情列表
export function getRecipe(params) {
    return request({
        url: "recipe/detail/" + params,
        method: "get",
        params
    })
}
// 笔记详情列表
export function getnotes(params) {
    return request({
        url: "note/detail/" + params,
        method: "get",
        params
    })
}
// 相关笔记列表
export function getNotesRelated(params) {
    return request({
        url: "note/related/" + params + "/0/20",
        method: "get",
        params
    })
}

// 评论列表
export function getcomments(params) {
    return request({
        url: "recipe/flatcomments/" + params + "/0/20",
        method: "get",
        params
    })
}

// 关注
export function getfollow(params) {
    return request({
        url: "recipe/detail/" + params,
        method: "get",
        params
    })
}
 